

<div id="content">
<h2>Welcome to BIS Webtool</h2>

<h1>DACH performance Overview (units)</h1>

<div id="normaltable">
<table>
		<thead>
			<tr>
				<th>Quarter</th>
				<th>Forecast</th>
				<th>Actuals</th>
				<th>Fulfillment</th>
			</tr>
		</thead>
		<tbody>
			<?php 

			foreach($this->entries as $row) {

				echo "<tr><td>".$row['calQuarter']."</td><td>".number_format($row['forecast'],2,',','.')." </td>"."</td><td>".number_format($row['netsales'],2,',','.')."</td><td>".round($row['netsales']/$row['forecast']*100, 2)." %</td><tr>";

			}

			?>
		</tbody>
	</table>
</div>
</div>
	<?php $this->jQuery()->onLoadCaptureStart(); ?>
				
				jQuery('#selectCustomer').change(function() 
				{ 
					$('#status').html('fetching data...');
					$.post('index/printcustomer/customernumber/'+$('#selectCustomer').val(),{}, 
					function(data) {
						for (key in data) {
							$('#QTY').html(key);
							$('#AMT').html(data[key]+' &euro;');
						}
						$('#status').html('');
					}, 'json'); 
				});
	<?php $this->jQuery()->onLoadCaptureEnd(); ?>